<?php

/*
 * 权限生成工具
 * 支持字段：[string]title:标题,[string]name:名称,[string]code:代码,[string]type:节点类型(M=菜单,O=操作,E=页面元素),[boolean]enable:是否可用,[string]url:链接地址,[array]children:子项目,[string]comment:注解
 * 说明：默认ismenu=true,如要特殊声明，需强制加上ismenu=false
 * @since 1.0 2014-7-11 by sutroon
 * @since 2.0 <2015-4-23> SoChishun 重新组织url
 * @since 3.0 <2015-7-30> SoChishun 新增code字段
 * @since 4.0 <2015-9-19> SoChishun 重构以适合RBAC自动拦截规则
 */
return array(
    array(
        'level' => '1',
        'title' => '设置',
        'code' => 'M1_SZ',
        'children' => array(
            array(
                'level' => '2',
                'title' => '系统设置',
                'code' => 'SZ_M2_XTSZ',
                'children' => array(
                    array('name' => 'Conf-WorkTimeSetting', 'level' => '3', 'title' => '上班时间设置', 'code' => 'SZ_M3_SBSJSZ', 'url' => 'Conf/WorkTimeSetting'),
                    array('name' => 'Conf-WorkDaySetting', 'level' => '3', 'title' => '工作日设置', 'code' => 'SZ_M3_GZRSZ', 'url' => 'Conf/WorkDaySetting'),
                ),
            ),
        ),
    ),
    array(
        'level' => '1',
        'title' => '用户',
        'code' => 'M1_YH',
        'children' => array(
            array(
                'level' => '2',
                'title' => '员工管理',
                'code' => 'YH_M2_YGGL',
                'children' => array(
                    array('name' => 'Employee-EmployeeList', 'level' => '3', 'title' => '员工列表', 'code' => 'YH_M3_YGLB', 'url' => 'Employee/EmployeeList',
                        'O' => array(
                            array('name' => 'Employee-EmployeeAdd', 'level' => '3', 'title' => '新增员工', 'code' => 'YH_YHGL_XZYG'),
                            array('name' => 'Employee-EmployeeEdit', 'level' => '3', 'title' => '编辑员工', 'code' => 'YH_YHGL_BJYG'),
                            array('name' => 'Employee-EmployeeDelete', 'level' => '3', 'title' => '删除员工', 'code' => 'YH_YHGL_SCYG'),
                        ),
                    ),
                    array('name' => 'Department-department_list', 'level' => '3', 'title' => '部门管理', 'code' => 'YH_M3_BMGL', 'url' => 'Department/DepartmentList'),
                    array('name' => 'Role-index', 'level' => '3', 'title' => '角色管理', 'code' => 'YH_M3_JSGL', 'url' => 'Role/RoleList', 'enable' => false),
                ),
            ),
        ),
    ),
    array(
        'level' => '1',
        'title' => '报表',
        'code' => 'M1_BB',
        'children' => array(
            array(
                'level' => '2',
                'title' => '考勤数据导入',
                'code' => 'BB_M2_KQSJDR',
                'children' => array(
                    array('name' => 'Records-CardRecords', 'level' => '3', 'title' => '打卡记录', 'code' => 'BB_M3_DRDKJL', 'url' => 'Records/CardRecords'),
                    array('name' => 'Records-LeaveRecords', 'level' => '3', 'title' => '请假记录', 'code' => 'BB_M3_DRQJJL', 'url' => 'Records/LeaveRecords'),
                ),
            ),
            array(
                'level' => '2',
                'title' => '考勤汇总统计',
                'code' => 'BB_M2_KQHZTJ',
                'children' => array(
                    array('name' => 'Report-MenjinReport', 'level' => '3', 'title' => '门禁报表', 'code' => 'BB_M3_MJBB', 'url' => 'Report/MenjinReport',
                        'O' => array(
                            array('name' => 'Report-ReportExport', 'level' => '3', 'title' => '报表导出', 'code' => 'BB_M3_BBDC'),
                            array('name' => 'Report-ReportSearch', 'level' => '3', 'title' => '报表查询', 'code' => 'BB_M3_BBCX'),
                        ),
                    ),
                    array('name' => 'Report-KaoqindengjiReport', 'level' => '3', 'title' => '考勤登记表', 'code' => 'BB_M3_KQDJB', 'url' => 'Report/KaoqindengjiReport'),
                    array('name' => 'Report-TongjiReport', 'level' => '3', 'title' => '考勤统计表', 'code' => 'BB_M3_KQTJB', 'url' => 'Report/TongjiReport'),
                ),
            ),
        ),
    ),
);
